<form id="app-form" class="layui-form layuimini-form">

    <div class="layui-form-item">
        <label class="layui-form-label required">存储方式</label>
        <div class="layui-input-block">
            {foreach [1=>'本地存储','2'=>'腾讯云cos'] as $key=>$val}
            <input type="radio" {if $model->upload_platform==$key} checked {/if}  name="upload_platform" lay-filter="upload_type" value="{$key}" title="{$val}">
            {/foreach}
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">允许类型</label>
        <div class="layui-input-block">
            <input type="text" name="upload_ext" class="layui-input" lay-verify="required" lay-reqtext="请输入允许类型" placeholder="请输入允许类型" value="{$model->upload_ext}">
            <tip>英文逗号做分隔符。</tip>
        </div>
    </div>

    <div class="layui-form-item" style="display: none;">
        <label class="layui-form-label required">允许大小</label>
        <div class="layui-input-block">
            <input type="text" name="upload_size" class="layui-input" lay-verify="required" lay-reqtext="请输入允许上传大小" placeholder="请输入允许上传大小" value="{$model->upload_size}">
            <tip>设置允许上传大小kb,例如 2097152 = 1024*1024*2 就是 2M</tip>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">TX:cos存储桶</label>
        <div class="layui-input-block">
            <input type="text" name="cos_bucket" class="layui-input"  placeholder="请输入腾讯云存储桶名称" value="{$model->cos_bucket}">
            <tip>请到腾讯云管理后台查看</tip>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">TX:cos地区</label>
        <div class="layui-input-block">
            <input type="text" name="cos_region" class="layui-input"  placeholder="请输入腾讯云cos地区" value="{$model->cos_region}">
            <tip>请到腾讯云管理后台查看</tip>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">TX:cosSecretId</label>
        <div class="layui-input-block">
            <input type="text" name="cos_secretId" class="layui-input"  placeholder="请输入腾讯云cosSecretId" value="{$model->cos_secretId}">
            <tip>请到腾讯云管理后台查看</tip>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label required">TX:cosSecretKey</label>
        <div class="layui-input-block">
            <input type="text" name="cos_secretKey" class="layui-input"  placeholder="腾讯云cos的SecretKey" value="{$model->cos_secretKey}">
            <tip>请到腾讯云管理后台查看</tip>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
        </div>
    </div>
</form>
